const koa=require('koa')
const routerMi=require('./router/routes')
const bodyParser=require('koa-bodyparser')
const cors=require('koa-cors')
const {sync}=require('./Model')
let app=new koa();

app.use(bodyParser())
app.use(cors());
app.use(routerMi());
sync();

let port=3000;
app.listen(port);

console.log(`服务运行在以下地址：http://localhost:${port}`);